<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<h2>所有分类</h2>
<div class="easyui-panel" style="padding:5px">
    <ul id="goodsCategory"></ul>
</div>
<script>
    $('#goodsCategory').tree({
        url:'api/goods/category',
        method:'GET',
        loadFilter: function(data){
        if (data.data){
            return data.data;
        } else {
            return data;
        }
    }
    });

</script>

